docs: fix broken cross-references in documentation#1369
Conversation
Fixes collective#1158 - Remove :py: prefix from cross-references in docstrings (:py:class: -> :class:, :py:mod: -> :mod:, :py:meth: -> :meth:) - Fix unqualified references to use fully qualified names (e.g. :class:`BUSYTYPE` -> :class:`icalendar.enums.BUSYTYPE`) - Use tilde-prefixed references for cleaner display (:class:`~icalendar.cal.todo.Todo`) - Affected files: calendar.py, lazy.py, todo.py, caselessdict.py, enums.py, parser/ical/lazy.py, parser/parameter.py, parser/property.py, parser/string.py, prop/dt/date.py, prop/dt/datetime.py, prop/dt/duration.py, prop/dt/time.py
Documentation build overview
22 files changed ·
|
|
@wahajahmed010 would you please:
For details, see https://icalendar.readthedocs.io/en/stable/contribute/index.html and https://icalendar.readthedocs.io/en/stable/contribute/development.html. Once you perform those tasks, then I'll do a review. Thank you! |
|
@stevepiercy Thanks for the review! I've addressed all your feedback:
Ready for another review! 🙏 |
| Minor changes | ||
| ~~~~~~~~~~~~~ | ||
|
|
||
| - Fix broken cross-references in documentation by replacing ``:py:`` prefixed roles with standard Sphinx roles and qualifying ambiguous references. See `#1158 <https://github.com/collective/icalendar/issues/1158>`_ |
There was a problem hiding this comment.
Please edit and move this to a new file at /news/1158.documentation. In v7.1.1, we migrated to an automated procedure to update CHANGES.rst, per https://icalendar.readthedocs.io/en/latest/contribute/index.html#change-log-entry-format. This also avoids merge conflicts and updating your PR repeatedly while waiting for it to get merged.
| - Fix broken cross-references in documentation by replacing ``:py:`` prefixed roles with standard Sphinx roles and qualifying ambiguous references. See `#1158 <https://github.com/collective/icalendar/issues/1158>`_ | |
| - Fix broken cross-references in documentation by removing ``:py`` prefixed roles and qualifying ambiguous references. @wahajahmed010 |
I'll perform a full review later.
See #1158
Changes
Remove
:py:prefix from cross-references in docstrings::py:class:→:class::py:mod:→:mod::py:meth:→:meth:Fix unqualified references to use fully qualified names:
:class:BUSYTYPE→ `:class:`icalendar.enums.BUSYTYPE:class:FBTYPE→ `:class:`icalendar.enums.FBTYPE:func:_escape_char→ `:func:`~icalendar.parser.string._escape_charUse tilde-prefixed references (
~) for cleaner displayed text while maintaining correct linking.Files changed (13)
src/icalendar/cal/calendar.pysrc/icalendar/cal/lazy.pysrc/icalendar/cal/todo.pysrc/icalendar/caselessdict.pysrc/icalendar/enums.pysrc/icalendar/parser/ical/lazy.pysrc/icalendar/parser/parameter.pysrc/icalendar/parser/property.pysrc/icalendar/parser/string.pysrc/icalendar/prop/dt/date.pysrc/icalendar/prop/dt/datetime.pysrc/icalendar/prop/dt/duration.pysrc/icalendar/prop/dt/time.pyThis PR was AI-assisted.
📚 Documentation preview 📚: https://icalendar--1369.org.readthedocs.build/